import { Application } from 'egg';

// 用户画像表
export default (app: Application) => {
    const { CHAR, STRING } = app.Sequelize;
    const model = app.model.define('UserPaint', {
        user_paint_id: { type: CHAR(32), primaryKey: true }, // id
        user_id: CHAR(32), // 用户id
        paint_value_id: CHAR(32), // 画像值ID
        paint_id: CHAR(32), // 对应画像表ID
        paint_value: STRING(100),//画像问答
        is_delete: CHAR(1),
    }, { tableName: 't_user_paint' });
    return model;
};

export class UserPaint {
    user_paint_id: string;
    user_id: string;
    paint_value_id: string;
    paint_id: string;
    paint_value: string;
    is_delete: string;
}
